@import '../common';

$selfMessageRadius: 24px;
$selfButtonRadius: 24px;
$selfButtonsRadius: 30px;

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scaleIn {
  0% {
    transform-origin: right bottom;
    transform: scale(0);
  }
  100% {
    transform-origin: right bottom;
    transform: scale(1);
  }
}

.SelfTalk {
  position: relative;
}

.SelfTalkTypeMessage {
  padding: 14px 24px;
  border-top-left-radius: $selfMessageRadius;
  border-top-right-radius: $selfMessageRadius;
  border-bottom-left-radius: $selfMessageRadius;
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.36);
  background-color: #558ff2;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  line-height: 20px;
  transform-origin: right bottom;
  transform: scale(0);
  // animation: scaleIn .3s ease-in-out forwards;
  animation: msgBounceIn 0.3s forwards;
}

.SelfTalkTypeButton {
  height: 48px;
  width: 320px;
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.36);
  background-color: #558ff2;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 48px;
  border-radius: $selfButtonRadius;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.SelfTalkTypeButtons {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
  padding-right: 15px;

  .SelfTalkTypeButtonsItem {
    height: 48px;
    width: 154px;
    border-radius: $selfButtonsRadius;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    cursor: pointer;

    &:nth-child(1) {
      height: 48px;
      width: 154px;
      background: #fff;
      background-color: #fff;
      box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.36);
      color: #558ff2;
      line-height: 48px;
      margin-right: 12px;
    }

    &:nth-child(2) {
      background: #1b9aee;
      box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.36);
      background-color: #1b9aee;
      color: #fff;
      line-height: 48px;
    }
  }
}

.FadeOut {
  animation: fadeOut 0.3s ease-in-out;
}
